<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        div{
            margin:0 auto;
            height:200px;
            width:200px;
            background:linear-gradient(white 50%,black 50%);
            border:1px solid gray;
            display:flex;
            flex-direction:row;
            align-items: center;
            border-radius: 50%;
            transition:all 5s;
        }
        div::before{
            content:"";
            height:100px;
            width:100px;
            background:radial-gradient(white 20%,black 20%);
            display:block;
            border-radius: 50%;
        }
        div::after{
            content:"";
            height:100px;
            width:100px;
            background:radial-gradient(black 20%,white 20%);
            display:block;
            border-radius:50%;
        }
        div:hover{
            transform: rotate(360deg);
        }
    </style>
</head>
<body>
    <div></div>
</body>
</html>